import {defineStore} from "pinia"

export const useAppStore = defineStore("app", {
    state: () => ({
        loadingCount: 0
    }),
    actions: {
        // 接口请求次数+1
        incLoadingCount() {
            this.loadingCount++
        },
        // 接口请求次数-1
        decLoadingCount() {
            this.loadingCount--
        },
    }
})
